-- GENERATED SPELL FOR [Nethervine Inciter] --


function spell0_19511(pUnit, Event) --@Deadly Poison,n/a--
pUnit:FullCastSpellOnTarget(34616,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19511', 1000, 1)
end

function spell1_19511(pUnit, Event) --@Kidney Shot,n/a--
pUnit:FullCastSpellOnTarget(30621,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19511', 3000, 1)
end

function spell2_19511(pUnit, Event) --@Mind-numbing Poison,n/a--
pUnit:FullCastSpellOnTarget(34615,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19511', 12262, 1)
end

function spell3_19511(pUnit, Event) --@Sunseeker Blessing,Self--
pUnit:FullCastSpellOnTarget(34173,pUnit)
pUnit:RegisterEvent('Sorts_19511', 30315, 1)
end

function Sorts_19511(pUnit, Event)
local choix_sorts_19511 = math.random(0, 3)
if choix_sorts_19511 == 0 then
pUnit:RegisterEvent('spell0_19511', 1, 1)
end
if choix_sorts_19511 == 1 then
pUnit:RegisterEvent('spell1_19511', 1, 1)
end
if choix_sorts_19511 == 2 then
pUnit:RegisterEvent('spell2_19511', 1, 1)
end
if choix_sorts_19511 == 3 then
pUnit:RegisterEvent('spell3_19511', 1, 1)
end
end

function mob19511_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19511', math.random(1500, 3000), 1)
end

function mob19511_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19511_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19511_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19511, 1, 'mob19511_Action')
RegisterUnitEvent(19511, 2, 'mob19511_Leave')
RegisterUnitEvent(19511, 3, 'mob19511_Kill')
RegisterUnitEvent(19511, 4, 'mob19511_Die')
